<!DOCTYPE html>
<html>
<head>
    <title>科鹏机电</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style media="print">
        * { margin: 0 !important; padding: 0 !important; }
        .noprint {
            display: none
        }
    </style>
    <style type="text/css">
        <!--
        body {
            margin-top: 0px;
        }

        div {
            font-family: Arial;
            display: inline-block;
        }
        table {
            table-layout: fixed;
        }

        -->

        html, body {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .tableBox {
            height: 80% !important;
            width: 100%;
        }

        table {
            margin-top: 5mm;
            height: 260mm !important;
            width: 180mm !important;
            border-collapse:collapse;
        }

        /*td {*/
        /*    border: 1px solid #000000;*/
        /*}*/

        .table-b td{border:1px solid #000000}

        td {
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
<div class="tableBox">
    <table id="tb1" width="100%" height="100%" align="center" cellspacing="0" cellpadding="0"
           style="word-break: break-all;position:relative;height: 260mm; width: 180mm;">
        <tr height="0px">
            <td width="220mm" colspan="8" align="center"><font size="4pt">报销单</font></td>
        </tr>
        <tr style="height: 5mm">
            <td colspan="2"><font size="2">报销人：</font></td>
            <td colspan="2" align="left"><font size="2" th:text="${reimDto.reimUsername}"></font></td>
            <td colspan="2"><font size="2">部门：</font> </td>
            <td colspan="2" align="left"><font size="2"  th:text="${reimDto.deptName}"></font></td>
        </tr>
        <tr style="height: 5mm">
            <td><font size="2">报销单号：</font></td>
            <td colspan="3"><font size="2"  th:text="${reimDto.reimNumber}"></font></td>
            <td><font size="2">报销金额：</font></td>
            <td colspan="3"><font size="2" th:text="${#numbers.formatDecimal(reimDto.reimAmount,1,'COMMA',2,'POINT')}"></font></td>
        </tr>
        <tr style="height: 5mm">
            <td><font size="2">报销日期：</font></td>
            <td colspan="3"><font size="2"  th:text="${#dates.format(reimDto.reimDate, 'yyyy-MM-dd')}"></font></td>
            <td><font size="2">报销金额(大写)：</font></td>
            <td colspan="3"><font size="2"  th:text="${reimDto.reimAmountCap}"></font></td>
        </tr>
        <tr style="height: 5mm">
            <td><font size="2">所属公司：</font></td>
            <td colspan="3"><font size="2"  th:text="${reimDto.companName}"></font></td>
            <td></td>
            <td colspan="3"></td>
        </tr>
        <tr style="height: 5mm">
            <td><font size="2">摘要：</font></td>
            <td colspan="7"><font size="2"  th:text="${reimDto.remark}"></font></td>
        </tr>
        <tr  style="height: 5mm" class="table-b" align="center">
            <td colspan="2"><font size="1">项目</font></td>
            <td><font size="1">费用类型</font></td>
            <td><font size="1">金额</font></td>
            <td><font size="1">发票类型</font></td>
            <td><font size="1">税率</font></td>
            <td><font size="1">不含税金额</font></td>
            <td ><font size="1">行备注</font></td>
        </tr>
        <tr style="height: 5mm" th:each="reimInfo:${reimDto.reimInfoDOList}" class="table-b" align="center">
            <td colspan="2"><font size="1"  th:text="${reimInfo.projectName}">文字</font></td>
            <td><font size="1"  th:text="${reimInfo.amountType}">文字</font></td>
            <td><font size="1"  th:text="${#numbers.formatDecimal(reimInfo.reimPrice,1,'COMMA',2,'POINT')}">文字</font></td>
            <td><font size="1"  th:text="${reimInfo.userNameCreate}">文字</font></td>
            <td><font size="1"  th:text="${#numbers.formatDecimal(reimInfo.taxRate,1,'COMMA',2,'POINT')}">文字</font></td>
            <td><font size="1"  th:text="${#numbers.formatDecimal(reimInfo.notTaxPrice,1,'COMMA',2,'POINT')}"></font></td>
            <td><font size="1"  th:text="${reimInfo.remark}"></font></td>
        </tr>
        <tr style="height: 5mm">
            <td colspan="2">核准(总经理)</td>
            <td colspan="2">部门审核(经理)</td>
            <td colspan="2">财务审核(主管)</td>
            <td>付款(出纳)</td>
            <td>收款人</td>
        </tr>
        <tr style="height: 5mm">
            <td colspan="2">日期</td>
            <td colspan="2">日期</td>
            <td colspan="2">日期</td>
            <td>日期</td>
            <td>日期</td>
        </tr>
    </table>
</div>
</body>
</html>